﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class BlacksmithNpc:Npc
    {
        private string _blacksmith;
        public BlacksmithNpc(string name, NpcType NpcType,string blacksmith) : base(name, NpcType)
        {

        }

        public string Blacksmith
        {

            get { return this._blacksmith; }
            set { this._blacksmith = value; }
        }
        public override void Speak()
        {
            Console.WriteLine("类型{0}{1}打造{2}",base.Name,base.NpcType,this.Blacksmith);
        }
    }
}
